/*
 * timer_config.c
 *
 *  Created on: May 23, 2022
 *      Author: xiaofei.wang
 */
//vvv
#ifndef PWM_TIMER_CONFIG_H_
#define PWM_TIMER_CONFIG_H_
	
#define FAN_PWM_TIM                    TIM4
#define FAN_PWM_TIM_GPIO_AF            GPIO_AF2_TIM4
#define FAN_PWM_TIM_CLK_ENABLE()  	  __TIM4_CLK_ENABLE()

#define FAN_PWM_TIM_CH1_GPIO_PORT           GPIOD
#define FAN_PWM_TIM_CH1_PIN                 GPIO_PIN_14
#define FAN_PWM_CH1_GPIO_CLK_ENABLE()       __HAL_RCC_GPIOD_CLK_ENABLE()

#endif /* PWM_TIMER_CONFIG_H_ */
